'use strict';

var resJson = require('../utils/resJson.js');
var iconv = require('iconv-lite');

var controller = function(req, res, next) {
  //res.set('Content-Type', 'application/json;charset=gb2312');
  console.log({
    code: 1,
    msg: '操作成功',
    data: {
      pid: req.query ? req.query.pid : '',
      status: '1'
    }
  });
  res.send({
    code: 1,
    msg: '操作成功',
    data: {
      pid: req.query.pid || '',
      status: '3'
    }
  });
  //res.charset = 'gb2312';
  // return res.json({
  //     code: 1,
  //     msg: '操作成功',
  //     data: {
  //         pid: req.query.pid,
  //         status: '1',
  //         query: req.query
  //     }
  // });
};

module.exports = controller;